package com.dr.common.pojo;

/**
 * 微信常量
 * @author tugou
 *
 */
public class WeChatFinalValue {
	/**
	 * 获取ACCESS_TOKE接口
	 */
	public final static String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
	
	/**
	 * 授权后获取openid
	 */
	public final static String ACCESS_OPENID_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
	
	/**
	 * 获取JS_TOKEN
	 */
	public final static String ACCESS_JS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";

	/**
	 * 微信临时文件下载
	 */
	public final static String FILE_DOWNLOAD_URL = "https://api.weixin.qq.com/cgi-bin/media/get?access_token=ACCESS_TOKEN&media_id=MEDIA_ID";

	/***
	 * 根据微信openId拉取用户信息
	 */
	public final static String GET_USER_INFO = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";
	/**
	 * 微信公主号入口，生产
	 */
	public final static String WECHAT_MAIN="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe39d79289924623a&redirect_uri=http%3a%2f%2fwww.ibikon.com%2fdr%2fstudent%2fsign&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
	/**
	 * 微信公主号入口，测试
	 */
	//public final static String WECHAT_MAIN="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxdcc0ee074bd4aa76&redirect_uri=http%3a%2f%2fwww.ibikon.com%2fdr%2fstudent%2fsign&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
}
